package com.demo.house.dao;

import com.demo.house.entity.Appointment;

import java.util.List;

public interface AppointmentDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Appointment record);

    int insertSelective(Appointment appointment);

    Appointment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);

    //房东查询预约
    List<Appointment> selectByUserIdList(Integer id);

    //租客查询预约
    List<Appointment> selectUserId(Integer id);

    // 查询所有预约了这个房源的人
    List<Appointment> selectByHouseSourceId(Integer id);

    int updateStatus(Appointment appointment);

}